home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / pcc / v04n11 / batch1.exe / DUPFILE.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-09-17  |  938 b   |  37 lines

  1. @ECHO OFF
  2. REM This is DUPFILE.BAT
  3. IF %1!==! GOTO OOPS
  4. ECHO Checking files . . .
  5. FOR %%A IN (*.*) DO IF EXIST %1\%%A ECHO %%A is in both places.
  6. PAUSE
  7. FOR %%A IN (*.*) DO IF NOT EXIST %1\%%A ECHO %%A is NOT in %1
  8. GOTO END
  9. :OOPS
  10. ECHO This searches for duplicate filenames 
  11. ECHO in two disks or directories. 
  12. ECHO First, make sure %0.BAT is in a directory 
  13. ECHO that your PATH knows about. Then log into
  14. ECHO one of the directories or disks that 
  15. ECHO you want to examine, and enter the name 
  16. ECHO of the other directory or disk after %0. 
  17. ECHO So to see a list of all filenames 
  18. ECHO that are in both C:\DOS and B:, 
  19. ECHO log into C:\DOS and type:
  20. ECHO.
  21. ECHO %0 B:
  22. ECHO.
  23. ECHO Or log into B: and type:
  24. ECHO.
  25. ECHO %0 C:\DOS
  26. ECHO.
  27. ECHO To check 2 subdirectories called \DOS4 and \DOS5, 
  28. ECHO log into \DOS4 and type:
  29. ECHO.
  30. ECHO %0 \DOS5
  31. ECHO.
  32. ECHO Or log into \DOS5 and type:
  33. ECHO.
  34. ECHO %0 \DOS4
  35. ECHO.
  36. :END
  37.